<extend name="Public/base"/>

<block name="body">
<!--服务器相关参数-->
<table class="table table-bordered">
    <tr class="success"><th colspan="2">服务器参数</th></tr>
    <tr>
        <td width="15%">服务器域名/IP地址</td>
        <td><?php echo @get_current_user();?> - <?php echo $_SERVER['SERVER_NAME'];?>(<?php if('/'==DIRECTORY_SEPARATOR){echo $_SERVER['SERVER_ADDR'];}else{echo @gethostbyname($_SERVER['SERVER_NAME']);} ?>)&nbsp;&nbsp;你的IP地址是：<?php echo @$_SERVER['REMOTE_ADDR'];?></td>
    </tr>
    <tr class="active">
        <td>服务器操作系统</td>
        <td><?php $os = explode(" ", php_uname()); echo $os[0];?> &nbsp;内核版本：<?php if('/'==DIRECTORY_SEPARATOR){echo $os[2];}else{echo $os[1];} ?></td>
        </tr>
    <tr>
        <td>服务器主机名</td>
        <td><?php if('/'==DIRECTORY_SEPARATOR ){echo $os[1];}else{echo $os[2];} ?></td>
    </tr>
    <tr class="active">
        <td>服务器解译引擎</td>
        <td><?php echo $_SERVER['SERVER_SOFTWARE'];?></td>
    </tr>
    <tr>
        <td>mysql版本</td>
        <td>{$mysql_version}</td>
    </tr>
    <tr class="active">
        <td>服务器端口</td>
        <td><?php echo $_SERVER['SERVER_PORT'];?></td>
    </tr>
    <tr>
        <td>绝对路径</td>
        <td><?php echo $_SERVER['DOCUMENT_ROOT']?str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']):str_replace('\\','/',dirname(__FILE__));?></td>
    </tr>
</table>
<!-- 产品信息 -->
<table class="table table-bordered">
    <tr class="danger"><th colspan="2">产品信息</th></tr>
    <tr>
        <td width="15%">产品名称</td>
        <td>THinkPHP+Bui+Bootstrap后台集成框架</td>
    </tr>
    <tr>
        <td>版本：</td>
        <td>Version 1.0</td>
    </tr>
    <tr class="active">
        <td>框架作者：</td>
        <td>HappyLiu 网址：<a href="http://91happy.wang" target="_blank">http://91happy.wang</a></td>
    </tr>
    <tr class="active">
        <td>产品设计与研发团队</td>
        <td>HappyPHP开发团队</td>
    </tr>
    <tr>
        <td>版权所有</td>
        <td>框架免费开源，欢迎有兴趣的朋友提供意见或自行改进后分享。</td>
    </tr>
</table>

</block>